package com.yanqu.road.entity.curio;

import com.yanqu.road.entity.DataObject;
import com.yanqu.road.entity.FieldTypeAnnotation;

/**
 * 藏品每个档位，最先到达的玩家
 */
@FieldTypeAnnotation(tableName = "t_c_curio_item_max_score")
public class CurioItemMaxScoreConditionData extends DataObject {

    @FieldTypeAnnotation(update = true, desc = "档位", select = true)
    private int conditionId;

    @FieldTypeAnnotation(desc = "藏品id")
    private int itemId;

    @FieldTypeAnnotation(desc = "分数")
    private long score;

    @FieldTypeAnnotation(desc = "玩家")
    private long userId;

    @FieldTypeAnnotation(desc = "更新时间")
    private long lastUpdateTime;

    public int getConditionId() {
        return conditionId;
    }

    public void setConditionId(int conditionId) {
        if(this.conditionId != conditionId) {
            this.conditionId = conditionId;
            setUpdateOption();
        }
    }

    public int getItemId() {
        return itemId;
    }

    public void setItemId(int itemId) {
        if(this.itemId != itemId) {
            this.itemId = itemId;
            setUpdateOption();
        }
    }

    public long getScore() {
        return score;
    }

    public void setScore(long score) {
        if(this.score != score) {
            this.score = score;
            setUpdateOption();
        }
    }

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        if(this.userId != userId) {
            this.userId = userId;
            setUpdateOption();
        }
    }

    public long getLastUpdateTime() {
        return lastUpdateTime;
    }

    public void setLastUpdateTime(long lastUpdateTime) {
        if(this.lastUpdateTime != lastUpdateTime) {
            this.lastUpdateTime = lastUpdateTime;
            setUpdateOption();
        }
    }
}
